#!/usr/bin/env bash

set -e

cd "$(dirname "$0")/.."

chmod 755 scripts/*
if ! command -v uv >/dev/null 2>&1; then
	echo "Installing uv (https://github.com/astral-sh/uv)" >&2
	python3 -m pip install --upgrade uv
fi

uv pip install --requirement requirements.txt --requirement requirements_test.txt
pre-commit install
pre-commit install-hooks

touch config/automations.yaml
